<html>
<head>
<title>{% block title %}Impossible world community{% endblock %}</title>
<link href="/template/main.css" rel="stylesheet" type="text/css">
{% block include_css %}{% endblock %}
{% block rss %}
<link rel="alternate" type="application/rss+xml" title="Impossible World community posts" href="rss/posts" />
<link rel="alternate" type="application/rss+xml" title="Impossible figures" href="rss/cube" />
{% endblock %} 
</head> 


<body>

<script src="/js/jquery.js" type="text/javascript"></script>
<script src="/template/main.js" type="text/javascript"></script>
{% block include_js %}{% endblock %}

 
{% block page_top %}

<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="heading-left" rowspan="2" height="133" width="325">
<a href="/"><img src="/template/logo-left.gif" border="0"/></a>
</td>

<!-- User login area -->
<td class="heading-login" valign="top">
  	<div class="login">
    	<b>{{ user_info.user_name }}</b>
		{% if user_info.admin %}
  			(admin)
		{% endif %} 

		{% if user_info.banned %}
  			(banned)
		{% endif %}      
      
		<a href="{{ user_info.login_url }}">{{ user_info.login_url_text }}</a>
	</div>

</td>
</tr>
<tr>
<td align="center" valign="middle">
{% if config.show_ads %}
<script type="text/javascript">
//<!--
google_ad_client = "pub-0036569436360210";
google_ad_slot = "4261865230";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

{% else %}
<img src="/template/test-banner.gif" />
{% endif %}
</td>
</tr>
</table>

{% endblock %}

<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
  <td valign="top">
    <div class="content">
      {% block content %}{% endblock %}
    </div>  
  </td>
  
  <td valign="top" class="user-menu-cell">
    <div class="user-menu">
      {% block user_menu %}

        <div class="user-menu-panel">
        <div class="user-menu-command"><a href="{{ user_info.url_my_cubic_figures }}"><b>My cubic figures</b></a></div>
        <div class="user-menu-command"><a href="{{ user_info.url_create_cubic_figure }}">Create figure</a></div>
        <div class="delimiter"></div>
        <div class="user-menu-command"><a href="/cube/figures/best">Best cubic figures</a></div>
        <div class="user-menu-command"><a href="/cube/figures/all">All cubic figures</a></div>
      {% endblock %}
    </div>


</div>  
  </td>
</tr>
</table>


{% block page_bottom %}
<div class="footer">
&copy; Idea and design by Vlad Alexeev, 2009-2013 | <a href="/privacy">Privacy policy</a>

{% if config.show_analytics %}
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-1090948-6");
pageTracker._trackPageview();
} catch(err) {}</script>
{% endif %}
</div>

{% endblock %}
</body>
</html>